package jin.si.com.xc;

/**
 * @description:
 * @ClassName TestLianxi
 * @Author MT
 * @Date 2021/7/3 12:56
 **/
public class TestLianxi {

    public static void main(String[] args) throws InterruptedException {
        Lianxi l=new Lianxi();
        Thread t1=new Thread(l,"窗口1");
        Thread t2=new Thread(l,"窗口2");
        Thread t3=new Thread(l,"窗口3");

        /*int priority = t1.getPriority();
        System.out.println(priority);

        t1.setPriority(10);
        t2.setPriority(9);
        t1.setPriority(8);

        //t1.join();

        t1.setDaemon(true);
        t2.setDaemon(true);
        t3.setDaemon(true);*/

        t1.start();
        t2.start();
        t3.start();

       /* Thread.sleep(3);
        t1.stop();
        t2.stop();
        t3.stop();

        t1.interrupt();
        t2.interrupt();
        t3.interrupt();*/



        /*for(int a=0;a<10;a++){
            System.out.println(Thread.currentThread().getName()+a);
        }*/



    }

}
